//
// Created by hanxi on 2021/4/19.
//

#ifndef MICROAMPERE_AMMETER_MCP3421_H
#define MICROAMPERE_AMMETER_MCP3421_H

#define MCP3421ADDR    (0xD0)   //MCP3421 地址

#include "main.h"

int MCP3421_Init(void);   //MCP3421初始化
uint32_t MCP3421_Get_Value(void);  //采集ADC数字值
float MCP3421_Get_Voltage_mv(void);   //将数字量转换为电压值支持正负显示
float MCP3421_get_voltage_glide_filter(void);

#endif //MICROAMPERE_AMMETER_MCP3421_H
